 import Login from "./components/Login"
//  import Reg from "./components/Reg"
// import UserInfo from "./components/UserInfo"
import News from "./components/News";
import Reg from "./components/Reg";
import { useState } from "react"
 function App() {

  const [show, setShow] = useState(true);
  const [isReg, setIsReg]=useState(false);

  const id="10000";
 
  return (
     <>
       <div>我的第一个react项目 {show+''}11</div>
       {/* <News></News> */}
    
       {/* <Reg /> */}

        {/* <UserInfo id="100" address="北京" /> */}

 {
  isReg ? <Reg /> : <Login />  
 }
       

        <div onClick={()=>setIsReg(true)}>没有账号，请注册</div>
       


       
      
     </>
  )
}

export default App
